package com.git.smp.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.git.smp.entity.QaDocument;

@Configuration
public class FreeMarkConfig {
	
	@Bean(name = "freeMarkConfiguration")
	public freemarker.template.Configuration getConfiguration() {
		freemarker.template.Configuration configuration = new freemarker.template.Configuration(freemarker.template.Configuration.VERSION_2_3_23);
		
		configuration.setDefaultEncoding("UTF-8");
		configuration.setClassForTemplateLoading(QaDocument.class, "/templates");
		return configuration;
	}

}
